package com.lihua.newideas.service;

import com.lihua.newideas.pojo.MyUser;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface MyUserService {

    //根据用户名查询用户信息
    MyUser queryUserByName(String username);

    //插入user
    MyUser insertUser(MyUser user);
    //    根据用户名和密保修改密码
    String updateUserByUserName(String passWord,  String userName,  String code);

    /*根据用户名进行修改*/
    String updateUserByUserName(MyUser user);

    //查询用户总数
    int queryUserNum();

    /*
     * 查询所有用户
     * */
    List<MyUser> queryUserAll();

    /*根据用户id删除用户
     * */
    void deleteMyUserById(int id);



}
